package com.hex.ds.hdtp.core.inf.data.contrast.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hex.ds.hdtp.core.inf.data.contrast.po.CrossDbContrastRunLogPo;
import com.hex.ds.hdtp.core.inf.data.contrast.po.CrossDbContrastTaskPo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Package: com.hex.ds.hdtp.core.inf.data.contrast.mapper
 * @ClassName ICrossDbContrastTaskMapper
 * @Description: 跨库对比任务-数据映射接口
 * @Author: wz.li
 * @Date 2023/7/24 18:21
 * @Version v2.0.2
 **/
@Repository
public interface ICrossDbContrastTaskMapper extends BaseMapper<CrossDbContrastTaskPo> {

    IPage<CrossDbContrastTaskPo> queryListByPage(IPage<CrossDbContrastTaskPo> toMyBatisPlusPage,
                                                 @Param("po") CrossDbContrastTaskPo crossDbContrastTaskPo);

    List<CrossDbContrastTaskPo> queryList(@Param("po") CrossDbContrastTaskPo crossDbContrastTaskPo);

    Integer updateStatusById(String pkId,String startTime);

    Integer updateEndStatusById(String pkId,String startTime);

    Integer updateCountById(@Param("po") CrossDbContrastRunLogPo recentByTask);

    Integer modifyTaskFinish(String pkId, String status, String nowTs);
}
